<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery-3.7.1.min.js"></script>
</head>
<body>

<script>

    var numbers = [10, 20, 30, 40, 50, 60];


    //第一个是参数索引 第二个是元素本身
    $.each(numbers, function (index, e) {
        // console.log(e);
        if (e >= 40){
            return false;
        }

        console.log(e);
    });

</script>

</body>
</html>